MUISmartPanelCreateΒΆ
MUISmartPanelCreate, hWndParent:MUIWND, X:MUIVALUE, Y:MUIVALUE, nWidth:MUIVALUE, nHeight:MUIVALUE, ResourceID:RESID, Style:MUIVALUE
Creates a new ModernUI_SmartPanel control
Parameters
- [in] hWndParent - parent window of control
- [in] X - x coordinate of the control
- [in] Y - y coordinate of the control
- [in] nWidth - width of the control
- [in] nHeight - height of the control
- [in] ResourceID - resource id of the control
- [in] Style - can be combination of style flags, see ModernUI_SmartPanel Style Flags for details
Return
Returns handle to newly created ModernUI_SmartPanel control (MUIWND
) if successful, or NULL
otherwise
ModernUI_SmartPanel Style Flags
MUISPS_NORMAL
- no slide animationMUISPS_NOSLIDE
- no slide animationMUISPS_SLIDEPANELS_SLOW
- slow speed slide animationMUISPS_SLIDEPANELS_NORMAL
- normal speed slide animationMUISPS_SLIDEPANELS
- normal speed slide animationMUISPS_SLIDEPANELS_FAST
- fast speed slide animationMUISPS_SLIDEPANELS_VFAST
- very fast speed slide animationMUISPS_SLIDEPANELS_INSTANT
- no slide animationMUISPS_SPS_WRAPAROUND
- for next/prev and showcase, if at end, moves to the right and starts again, otherwise if not specified, at last panel, scrolls left all the way back to start showing all panels along the way.MUISPS_SPS_SKIPBETWEEN
- skips any in between panels, just moves from one to another.MUISPS_DESIGN_INFO
- only used at design time to show text, which can be toggled off by user
Example
Invoke MUISmartPanelCreate, hWin, 10, 10, 1024, 800, IDC_SMARTPANEL, MUISPS_NOSLIDE
See Also
MUISmartPanelRegister, MUISmartPanelGetProperty, MUISmartPanelSetProperty, MUISmartPanelRegisterPanel